home *** CD-ROM | disk | FTP | other *** search
/ Aminet 1 (Walnut Creek) / Aminet - June 1993 [Walnut Creek].iso / aminet / os20 / wb / toolmanager2_0.lha / ToolManager / Scripts / view.sh < prev    next >
Text File  |  1992-09-26  |  884b  |  37 lines

  1. #
  2. #   view.sh  -  display file of any type
  3. #
  4. set file $_passed
  5. alias center "%a echo @center( $a 77 )
  6. if $file <> ""
  7.  class.sh toolmanager
  8.  if @getclass( $file ) = dir;set file $file""!*.info;endif
  9.  action view $file
  10.  set err $_lasterr
  11.  if $err = 10
  12.   center
  13.   center "I could not determine the type of this file."
  14.  endif
  15.  if $err = 11
  16.   center
  17.   center "I don't know how to view this type of file."
  18.  endif
  19.  if $err = 12
  20.   center
  21.   center "I could not execute the program to view this file."
  22.  endif
  23. else
  24.  center
  25.  center "* * *  VIEW  * * *"
  26.  center
  27.  center
  28.  center "Drop any text/graphic/archive/sound icon on this icon."
  29.  center "It will be displayed, listed or played, respectively"
  30.  center
  31.  center "To modify the various programs used for displaying, read
  32.  center "the chapter 'object oriented features' in your csh.doc.
  33.  center
  34.  center
  35.  center "Click close button when done
  36. endif
  37.